package com.slmxz.tms.document.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.slmxz.tms.document.model.entity.Business;
import com.slmxz.tms.document.model.vo.BusinessVO;

/**
 * 业务类型服务类
 * @author sunyao
 * @Date 2024-11-09
 */
public interface BusinessService extends IService<Business> {

    /**
     *业务类型分页列表
     *
     * @return
     */
    IPage<BusinessVO> selectBusinessPage(IPage<BusinessVO> page, BusinessVO business);

    /**
     * 获取业务类型表单数据
     *
     * @param id 业务类型ID
     * @return
     */
     BusinessVO selectBusinessDetail(Long id);

    /**
     * 新增业务类型
     * @return
     */
    boolean saveBusiness(BusinessVO business);

    /**
     * 修改业务类型
     *
     * @return
     */
    boolean updateBusiness(BusinessVO business);

    /**
     * 删除业务类型
     *
     * @param ids 业务类型ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteBusinesss(String ids);

    /**
     * 激活或者注销
     * @param business
     * @return
     */
    boolean activeOrLogout(BusinessVO business);

}
